#set(title='二手书交易审核',menu='secondaudit',statusMap={'0':'待审核','1':'交易中','2':'待发货','3':'待买家确认收货','4':'交易完成','5':'交易关闭','6':'审核拒绝'})
#@user_layout()
#define user_main()
	 <h1 class="page-header">#(title)</h1>
     <div class="table-responsive">
            <table class="table table-striped ">
              <thead>
                <tr>
                  <th>序号</th>
                  <th>图书</th>
                  <th>单价（元）</th>
                  <th>数量</th>
                  <th>原价（元）</th>
                  <th>二手价（元）</th>
                  <th>发起人</th>
                  <th>发起时间</th>
                  <th>状态</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              	#for(x : page.getList())
	             	<tr>
	                  <td>#(for.index+1)</td>
	                  <td>
	                  	<a href="#(ctx)/book/detail/#(x.bookId)"><img src="#(uploadPah)#(x.book.bookImg)" alt="book image" width="70px"></a>
	              				<a href="#(ctx)/book/detail/#(x.bookId)">#(x.book.name)</a>
	                  </td>
	                  <td>#(x.price)</td>
	                  <td>#(x.num)</td>
	                  <td>#(x.total)</td>
	                  <td>#(x.soldTotal)</td>
	                  <td>#(x.user.name)</td>
                  	  <td>#(x.createTime)</td>
	                  <td>#(statusMap[x.status+''])</td>
	                  <td>
	                  	<button type="button" class="btn btn-info" id="auidtSoldBtn-#(x.id)-1">通过</button>
	                  	<button type="button" class="btn btn-warning" id="auidtSoldBtn-#(x.id)-6">拒绝</button>
	                  </td>
	                </tr>
                #end
              
              </tbody>
            </table>
          </div>
#end
